<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'cash/get_balance_list?type=<?php echo $type?>',
        fields:[[
            {field:'balance',title:'游戏额度 ',      width:200, align:'center',sortable:false},
            {field:'enable',title:'启用 ',      width:200, align:'center',sortable:true},
            {field:'stop',title:'停用	',      width:200, align:'center',sortable:true},
            {field:'update_time',title:'更新时间',   width:200, align:'center', sortable:true},
            {field:'op',      title:'操作', width:200,align:'center',sortable:false,formatter:function(v,r){
                return '<a herf="#" class="btn btn-danger btn-xs" onclick=udpate_balance(this)>立即更新</a>&nbsp;&nbsp;';
            }}
        ]],
        checkbox:false,
        footer:true,
        pagination:{layout:['links','last'],showRefresh:false},
        success:function(){
            $('#<?php echo $id?>').pagination({layout:['links','last'],showRefresh:false});
        }
    });

    function udpate_balance(obj)
    {

    }
</script>

